import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'babel-polyfill'

// 过滤器
import * as filters from './filters/index'

// antd引入
import Antd from 'ant-design-vue/lib'
import 'ant-design-vue/dist/antd.less'

import VueParticles from 'vue-particles'

// 引入公共样式
import './common/styles/main.less'

// 是否使用mock数据
// import '@/mock/index'

Vue.use(Antd)
Vue.use(VueParticles)

// 注册filter
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
